﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://1stjs.googlecode.com/svn/trunk/fw4/" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>F.menu演示</title>
<style type="text/css">
*{margin:0}
html,body{width:100%; height:100%;}
</style>
<script type="text/javascript" src="1st.js"></script>
</head>
<body>
想看效果请单击右键

<script type="text/javascript">
var menu = F.menu({
    data:[
        {key:"增加项目", click:function(){alert(888)}},
        {key:"横排", click:alert.proxy(this,1)},
        {key:"竖排", click:alert.proxy(this,2)},
        {key:"乱排", click:alert.proxy(this,3)}
    ]
});
menu.addhand(F().click(menu.hide.proxy(menu)));
</script>
</body>
</html>